home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / U-Z / VideoToolbox 4.95.sit / VideoToolbox / VideoToolboxSources / StringBounds.c < prev    next >
MacBinary  |  1995-02-24  |  11.4 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Fri Feb 24 03:49:10 1995, modified Fri Feb 24 03:49:10 1995, creator 'MMCC', type ASCII, 9552 bytes "StringBounds.c" , at 0x25d0 1804 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 53 74 72 69 6e 67 | 42 6f 75 6e 64 73 2e 63 |..String|Bounds.c|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 25 50 00 | 00 07 0c ab 73 4e 06 ab |.....%P.|....sN..|
|00000060| 73 4e 06 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |sN......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 21 ae 00 00 |........|....!...|
|00000080| 2f 2a 0d 53 74 72 69 6e | 67 42 6f 75 6e 64 73 2e |/*.Strin|gBounds.|
|00000090| 63 0d 0d 09 76 6f 69 64 | 20 53 74 72 42 6f 75 6e |c...void| StrBoun|
|000000a0| 64 73 28 63 68 61 72 20 | 2a 73 74 72 2c 52 65 63 |ds(char |*str,Rec|
|000000b0| 74 20 2a 62 6f 75 6e 64 | 73 2c 6c 6f 6e 67 20 2a |t *bound|s,long *|
|000000c0| 63 6f 75 6e 74 29 3b 0d | 09 76 6f 69 64 20 53 74 |count);.|.void St|
|000000d0| 72 69 6e 67 42 6f 75 6e | 64 73 28 63 6f 6e 73 74 |ringBoun|ds(const|
|000000e0| 20 75 6e 73 69 67 6e 65 | 64 20 63 68 61 72 20 2a | unsigne|d char *|
|000000f0| 73 74 72 69 6e 67 2c 52 | 65 63 74 20 2a 62 6f 75 |string,R|ect *bou|
|00000100| 6e 64 73 2c 6c 6f 6e 67 | 20 2a 63 6f 75 6e 74 29 |nds,long| *count)|
|00000110| 3b 0d 53 74 72 42 6f 75 | 6e 64 73 20 61 63 63 65 |;.StrBou|nds acce|
|00000120| 70 74 73 20 61 20 43 20 | 73 74 72 69 6e 67 2e 20 |pts a C |string. |
|00000130| 53 74 72 69 6e 67 42 6f | 75 6e 64 73 20 61 63 63 |StringBo|unds acc|
|00000140| 65 70 74 73 20 61 20 70 | 61 73 63 61 6c 20 73 74 |epts a p|ascal st|
|00000150| 72 69 6e 67 2e 0d 42 6f | 74 68 20 72 6f 75 74 69 |ring..Bo|th routi|
|00000160| 6e 65 73 20 63 6f 75 6e | 74 2d 2d 61 6e 64 20 63 |nes coun|t--and c|
|00000170| 6f 6d 70 75 74 65 20 74 | 68 65 20 6d 69 6e 69 6d |ompute t|he minim|
|00000180| 75 6d 20 62 6f 75 6e 64 | 69 6e 67 20 72 65 63 74 |um bound|ing rect|
|00000190| 61 6e 67 6c 65 20 66 6f | 72 2d 2d 61 6c 6c 20 74 |angle fo|r--all t|
|000001a0| 68 65 20 70 69 78 65 6c | 73 20 74 68 61 74 0d 77 |he pixel|s that.w|
|000001b0| 6f 75 6c 64 20 62 65 20 | 73 65 74 20 62 6c 61 63 |ould be |set blac|
|000001c0| 6b 20 62 79 20 63 61 6c | 6c 69 6e 67 20 44 72 61 |k by cal|ling Dra|
|000001d0| 77 53 74 72 69 6e 67 20 | 77 69 74 68 20 74 68 65 |wString |with the|
|000001e0| 20 67 69 76 65 6e 20 73 | 74 72 69 6e 67 20 77 69 | given s|tring wi|
|000001f0| 74 68 20 74 68 65 0d 63 | 75 72 72 65 6e 74 20 70 |th the.c|urrent p|
|00000200| 6f 72 74 27 73 20 66 6f | 6e 74 2c 20 73 69 7a 65 |ort's fo|nt, size|
|00000210| 2c 20 61 6e 64 20 73 74 | 79 6c 65 2e 20 43 6f 6f |, and st|yle. Coo|
|00000220| 72 64 69 6e 61 74 65 73 | 20 69 6e 20 74 68 65 20 |rdinates| in the |
|00000230| 2a 62 6f 75 6e 64 73 20 | 72 65 63 74 20 61 72 65 |*bounds |rect are|
|00000240| 0d 72 65 6c 61 74 69 76 | 65 20 74 6f 20 74 68 65 |.relativ|e to the|
|00000250| 20 63 75 72 72 65 6e 74 | 20 70 65 6e 20 70 6f 73 | current| pen pos|
|00000260| 69 74 69 6f 6e 2e 20 49 | 66 20 6e 6f 20 70 69 78 |ition. I|f no pix|
|00000270| 65 6c 73 20 77 6f 75 6c | 64 20 62 65 20 73 65 74 |els woul|d be set|
|00000280| 20 74 68 65 6e 20 2a 62 | 6f 75 6e 64 73 20 69 73 | then *b|ounds is|
|00000290| 0d 73 65 74 20 74 6f 20 | 74 68 65 20 65 6d 70 74 |.set to |the empt|
|000002a0| 79 20 72 65 63 74 20 28 | 30 2c 30 2c 30 2c 30 29 |y rect (|0,0,0,0)|
|000002b0| 2e 20 54 68 65 20 63 75 | 72 72 65 6e 74 20 70 6f |. The cu|rrent po|
|000002c0| 72 74 20 69 73 20 6c 65 | 66 74 20 75 6e 74 6f 75 |rt is le|ft untou|
|000002d0| 63 68 65 64 2e 0d 0d 54 | 68 65 20 6d 65 61 73 75 |ched...T|he measu|
|000002e0| 72 65 6d 65 6e 74 73 20 | 61 72 65 20 62 61 73 65 |rements |are base|
|000002f0| 64 20 6f 6e 20 61 20 66 | 75 6c 6c 20 72 65 6e 64 |d on a f|ull rend|
|00000300| 65 72 69 6e 67 20 6f 66 | 20 74 68 65 20 73 74 72 |ering of| the str|
|00000310| 69 6e 67 20 69 6e 20 61 | 20 70 72 69 76 61 74 65 |ing in a| private|
|00000320| 0d 47 57 6f 72 6c 64 2c | 20 77 69 74 68 6f 75 74 |.GWorld,| without|
|00000330| 20 61 6e 79 20 63 6c 69 | 70 70 69 6e 67 2e 0d 0d | any cli|pping...|
|00000340| 54 68 65 20 62 6f 75 6e | 64 73 20 61 6e 64 20 63 |The boun|ds and c|
|00000350| 6f 75 6e 74 20 61 72 67 | 75 6d 65 6e 74 73 20 61 |ount arg|uments a|
|00000360| 72 65 20 6f 70 74 69 6f | 6e 61 6c 3b 20 74 68 65 |re optio|nal; the|
|00000370| 79 20 6d 61 79 20 62 65 | 20 72 65 70 6c 61 63 65 |y may be| replace|
|00000380| 64 20 62 79 20 4e 55 4c | 4c 2e 0d 0d 09 76 6f 69 |d by NUL|L....voi|
|00000390| 64 20 43 68 61 72 42 6f | 75 6e 64 73 28 63 68 61 |d CharBo|unds(cha|
|000003a0| 72 20 61 2c 52 65 63 74 | 20 2a 62 6f 75 6e 64 73 |r a,Rect| *bounds|
|000003b0| 2c 6c 6f 6e 67 20 2a 63 | 6f 75 6e 74 29 3b 0d 43 |,long *c|ount);.C|
|000003c0| 72 65 61 74 65 73 20 61 | 20 6f 6e 65 2d 63 68 61 |reates a| one-cha|
|000003d0| 72 20 73 74 72 69 6e 67 | 20 61 6e 64 20 63 61 6c |r string| and cal|
|000003e0| 6c 73 20 53 74 72 69 6e | 67 42 6f 75 6e 64 73 28 |ls Strin|gBounds(|
|000003f0| 29 2e 0d 0d 09 64 6f 75 | 62 6c 65 20 53 74 72 4f |)....dou|ble StrO|
|00000400| 75 74 6c 69 6e 65 4c 65 | 6e 67 74 68 28 63 68 61 |utlineLe|ngth(cha|
|00000410| 72 20 2a 73 29 3b 0d 09 | 64 6f 75 62 6c 65 20 53 |r *s);..|double S|
|00000420| 74 72 69 6e 67 4f 75 74 | 6c 69 6e 65 4c 65 6e 67 |tringOut|lineLeng|
|00000430| 74 68 28 63 6f 6e 73 74 | 20 75 6e 73 69 67 6e 65 |th(const| unsigne|
|00000440| 64 20 63 68 61 72 20 2a | 73 29 3b 0d 4d 65 61 73 |d char *|s);.Meas|
|00000450| 75 72 65 20 74 68 65 20 | 6f 75 74 6c 69 6e 65 20 |ure the |outline |
|00000460| 6c 65 6e 67 74 68 20 6f | 66 20 61 20 73 74 72 69 |length o|f a stri|
|00000470| 6e 67 2c 20 69 6e 20 70 | 69 78 65 6c 73 2e 20 46 |ng, in p|ixels. F|
|00000480| 6f 72 6d 65 72 6c 79 20 | 28 62 65 66 6f 72 65 20 |ormerly |(before |
|00000490| 32 2f 32 30 2f 39 35 29 | 0d 49 20 74 68 6f 75 67 |2/20/95)|.I thoug|
|000004a0| 68 74 20 69 74 20 77 61 | 73 20 65 6e 6f 75 67 68 |ht it wa|s enough|
|000004b0| 20 74 6f 20 6a 75 73 74 | 20 63 6f 75 6e 74 20 74 | to just| count t|
|000004c0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 70 69 78 |he numbe|r of pix|
|000004d0| 65 6c 73 20 69 6e 20 74 | 68 65 20 31 2d 70 69 78 |els in t|he 1-pix|
|000004e0| 65 6c 20 74 68 69 63 6b | 0d 6f 75 74 6c 69 6e 65 |el thick|.outline|
|000004f0| 20 74 68 61 74 20 6f 6e | 65 20 6f 62 74 61 69 6e | that on|e obtain|
|00000500| 73 20 77 68 65 6e 20 64 | 72 61 77 69 6e 67 20 61 |s when d|rawing a|
|00000510| 20 50 6f 73 74 53 63 72 | 69 70 74 20 6f 72 20 54 | PostScr|ipt or T|
|00000520| 72 75 65 54 79 70 65 20 | 63 68 61 72 61 63 74 65 |rueType |characte|
|00000530| 72 20 69 6e 0d 6f 75 74 | 6c 69 6e 65 20 73 74 79 |r in.out|line sty|
|00000540| 6c 65 2e 20 48 6f 77 65 | 76 65 72 2c 20 49 20 6c |le. Howe|ver, I l|
|00000550| 61 74 65 72 20 64 69 73 | 63 6f 76 65 72 65 64 20 |ater dis|covered |
|00000560| 74 68 61 74 20 74 68 69 | 73 20 6f 6e 6c 79 20 67 |that thi|s only g|
|00000570| 69 76 65 73 20 63 6f 72 | 72 65 63 74 20 72 65 73 |ives cor|rect res|
|00000580| 75 6c 74 73 0d 66 6f 72 | 20 76 65 72 74 69 63 61 |ults.for| vertica|
|00000590| 6c 20 61 6e 64 20 68 6f | 72 69 7a 6f 6e 74 61 6c |l and ho|rizontal|
|000005a0| 20 73 65 67 6d 65 6e 74 | 73 20 6f 66 20 74 68 65 | segment|s of the|
|000005b0| 20 74 68 65 20 6f 75 74 | 6c 69 6e 65 2e 20 44 69 | the out|line. Di|
|000005c0| 61 67 6f 6e 61 6c 20 73 | 65 67 6d 65 6e 74 73 20 |agonal s|egments |
|000005d0| 6f 66 0d 74 68 65 20 6f | 75 74 6c 69 6e 65 20 61 |of.the o|utline a|
|000005e0| 72 65 2c 20 6e 65 63 65 | 73 73 61 72 69 6c 79 2c |re, nece|ssarily,|
|000005f0| 20 61 20 73 74 61 69 72 | 73 74 65 70 2c 20 73 6f | a stair|step, so|
|00000600| 20 61 20 70 69 78 65 6c | 20 63 6f 75 6e 74 20 79 | a pixel| count y|
|00000610| 69 65 6c 64 73 20 61 20 | 63 69 74 79 2d 62 6c 6f |ields a |city-blo|
|00000620| 63 6b 0d 70 61 74 68 20 | 6c 65 6e 67 74 68 2e 20 |ck.path |length. |
|00000630| 46 6f 72 20 61 20 34 35 | 20 64 65 67 20 73 6c 6f |For a 45| deg slo|
|00000640| 70 65 20 74 68 65 20 70 | 69 78 65 6c 20 63 6f 75 |pe the p|ixel cou|
|00000650| 6e 74 20 69 73 20 74 6f | 6f 20 68 69 67 68 20 62 |nt is to|o high b|
|00000660| 79 20 61 20 66 61 63 74 | 6f 72 20 6f 66 0d 73 71 |y a fact|or of.sq|
|00000670| 75 61 72 65 20 72 6f 6f | 74 20 6f 66 20 32 2c 20 |uare roo|t of 2, |
|00000680| 69 2e 65 2e 20 62 79 20 | 72 6f 75 67 68 6c 79 20 |i.e. by |roughly |
|00000690| 61 20 66 61 63 74 6f 72 | 20 6f 66 20 31 2e 35 2e |a factor| of 1.5.|
|000006a0| 20 53 74 72 69 6e 67 4f | 75 74 6c 69 6e 65 4c 65 | StringO|utlineLe|
|000006b0| 6e 67 74 68 28 29 20 74 | 72 69 65 73 0d 74 6f 20 |ngth() t|ries.to |
|000006c0| 70 72 6f 76 69 64 65 20 | 61 20 6d 6f 72 65 20 61 |provide |a more a|
|000006d0| 63 63 75 72 61 74 65 20 | 65 73 74 69 6d 61 74 65 |ccurate |estimate|
|000006e0| 20 6f 66 20 6f 75 74 6c | 69 6e 65 20 6c 65 6e 67 | of outl|ine leng|
|000006f0| 74 68 2e 20 49 74 20 63 | 72 65 61 74 65 73 20 74 |th. It c|reates t|
|00000700| 68 65 20 31 2d 70 69 78 | 65 6c 0d 6f 75 74 6c 69 |he 1-pix|el.outli|
|00000710| 6e 65 20 61 6e 64 20 74 | 68 65 6e 20 74 68 69 63 |ne and t|hen thic|
|00000720| 6b 65 6e 73 20 69 74 20 | 62 79 20 72 65 70 65 61 |kens it |by repea|
|00000730| 74 65 64 6c 79 20 4f 52 | 69 6e 67 20 74 68 65 20 |tedly OR|ing the |
|00000740| 69 6d 61 67 65 20 77 69 | 74 68 20 69 74 73 65 6c |image wi|th itsel|
|00000750| 66 2c 20 73 68 69 66 74 | 65 64 0d 62 79 20 6f 6e |f, shift|ed.by on|
|00000760| 65 20 70 69 78 65 6c 3a | 20 6c 65 66 74 2c 20 72 |e pixel:| left, r|
|00000770| 69 67 68 74 2c 20 75 70 | 2c 20 61 6e 64 20 64 6f |ight, up|, and do|
|00000780| 77 6e 2e 20 54 68 69 73 | 20 68 61 73 20 74 68 65 |wn. This| has the|
|00000790| 20 65 66 66 65 63 74 20 | 6f 66 20 74 72 69 70 6c | effect |of tripl|
|000007a0| 69 6e 67 20 74 68 65 0d | 74 68 69 63 6b 6e 65 73 |ing the.|thicknes|
|000007b0| 73 20 6f 66 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 20 |s of hor|izontal |
|000007c0| 61 6e 64 20 76 65 72 74 | 69 63 61 6c 20 6c 69 6e |and vert|ical lin|
|000007d0| 65 73 2c 20 66 72 6f 6d | 20 31 20 74 6f 20 33 20 |es, from| 1 to 3 |
|000007e0| 70 69 78 65 6c 73 2c 20 | 61 6e 64 20 64 6f 75 62 |pixels, |and doub|
|000007f0| 6c 69 6e 67 20 74 68 65 | 0d 74 68 69 63 6b 6e 65 |ling the|.thickne|
|00000800| 73 73 20 6f 66 20 34 35 | 20 64 65 67 20 64 69 61 |ss of 45| deg dia|
|00000810| 67 6f 6e 61 6c 20 6c 69 | 6e 65 73 2e 20 53 69 6e |gonal li|nes. Sin|
|00000820| 63 65 20 74 68 65 20 64 | 69 61 67 6f 6e 61 6c 20 |ce the d|iagonal |
|00000830| 6c 69 6e 65 73 20 77 65 | 72 65 20 61 6c 72 65 61 |lines we|re alrea|
|00000840| 64 79 0d 70 72 6f 76 69 | 64 69 6e 67 20 61 62 6f |dy.provi|ding abo|
|00000850| 75 74 20 31 2e 35 20 74 | 69 6d 65 73 20 61 73 20 |ut 1.5 t|imes as |
|00000860| 6d 61 6e 79 20 70 69 78 | 65 6c 73 20 61 73 20 74 |many pix|els as t|
|00000870| 68 65 20 74 72 75 65 20 | 6c 65 6e 67 74 68 2c 20 |he true |length, |
|00000880| 77 68 65 6e 20 64 6f 75 | 62 6c 65 64 2c 20 74 68 |when dou|bled, th|
|00000890| 65 79 0d 70 72 6f 76 69 | 64 65 20 74 72 69 70 6c |ey.provi|de tripl|
|000008a0| 65 20 74 68 65 20 6c 65 | 6e 67 74 68 2c 20 6a 75 |e the le|ngth, ju|
|000008b0| 73 74 20 6c 69 6b 65 20 | 74 68 65 20 68 6f 72 69 |st like |the hori|
|000008c0| 7a 6f 6e 74 61 6c 20 61 | 6e 64 20 76 65 72 74 69 |zontal a|nd verti|
|000008d0| 63 61 6c 20 6c 69 6e 65 | 73 2e 20 54 68 75 73 2c |cal line|s. Thus,|
|000008e0| 20 74 6f 0d 61 20 66 69 | 72 73 74 20 6f 72 64 65 | to.a fi|rst orde|
|000008f0| 72 2c 20 74 68 65 20 6c | 65 6e 67 74 68 20 6d 65 |r, the l|ength me|
|00000900| 61 73 75 72 65 6d 65 6e | 74 20 73 68 6f 75 6c 64 |asuremen|t should|
|00000910| 20 62 65 20 69 6e 73 65 | 6e 73 69 74 69 76 65 20 | be inse|nsitive |
|00000920| 74 6f 20 6f 72 69 65 6e | 74 61 74 69 6f 6e 20 6f |to orien|tation o|
|00000930| 66 0d 74 68 65 20 73 65 | 67 6d 65 6e 74 73 20 6f |f.the se|gments o|
|00000940| 66 20 74 68 65 20 6f 75 | 74 6c 69 6e 65 2e 0d 0d |f the ou|tline...|
|00000950| 4e 4f 54 45 53 0d 0d 62 | 6f 75 6e 64 73 2d 3e 72 |NOTES..b|ounds->r|
|00000960| 69 67 68 74 20 6e 65 65 | 64 20 6e 6f 74 20 65 78 |ight nee|d not ex|
|00000970| 61 63 74 6c 79 20 65 71 | 75 61 6c 20 74 68 65 20 |actly eq|ual the |
|00000980| 76 61 6c 75 65 20 72 65 | 74 75 72 6e 65 64 20 62 |value re|turned b|
|00000990| 79 20 53 74 72 69 6e 67 | 57 69 64 74 68 28 73 29 |y String|Width(s)|
|000009a0| 2c 0d 62 65 63 61 75 73 | 65 20 53 74 72 69 6e 67 |,.becaus|e String|
|000009b0| 57 69 64 74 68 20 72 65 | 74 75 72 6e 73 20 74 68 |Width re|turns th|
|000009c0| 65 20 64 69 73 70 6c 61 | 63 65 6d 65 6e 74 20 6f |e displa|cement o|
|000009d0| 66 20 74 68 65 20 70 65 | 6e 20 70 6f 73 69 74 69 |f the pe|n positi|
|000009e0| 6f 6e 2c 20 61 6e 64 20 | 73 6f 6d 65 20 28 65 2e |on, and |some (e.|
|000009f0| 67 2e 0d 69 74 61 6c 69 | 63 29 20 63 68 61 72 61 |g..itali|c) chara|
|00000a00| 63 74 65 72 73 20 65 78 | 74 65 6e 64 20 62 65 79 |cters ex|tend bey|
|00000a10| 6f 6e 64 20 74 68 61 74 | 2c 20 77 68 69 6c 65 20 |ond that|, while |
|00000a20| 6f 74 68 65 72 73 20 28 | 65 2e 67 2e 20 63 6f 6d |others (|e.g. com|
|00000a30| 6d 61 29 20 65 78 74 65 | 6e 64 20 6c 65 73 73 0d |ma) exte|nd less.|
|00000a40| 66 61 72 2e 20 53 69 6d | 69 6c 61 72 6c 79 2c 20 |far. Sim|ilarly, |
|00000a50| 62 6f 75 6e 64 73 2d 3e | 6c 65 66 74 20 6e 65 65 |bounds->|left nee|
|00000a60| 64 20 6e 6f 74 20 61 6c | 77 61 79 73 20 62 65 20 |d not al|ways be |
|00000a70| 7a 65 72 6f 2e 0d 0d 42 | 79 20 51 75 69 63 6b 44 |zero...B|y QuickD|
|00000a80| 72 61 77 27 73 20 63 6f | 6e 76 65 6e 74 69 6f 6e |raw's co|nvention|
|00000a90| 2c 20 65 61 63 68 20 70 | 69 78 65 6c 20 69 73 20 |, each p|ixel is |
|00000aa0| 63 6f 6e 73 69 64 65 72 | 65 64 20 74 6f 20 6c 69 |consider|ed to li|
|00000ab0| 65 20 62 65 6c 6f 77 20 | 61 6e 64 20 74 6f 20 74 |e below |and to t|
|00000ac0| 68 65 0d 72 69 67 68 74 | 20 6f 66 20 74 68 65 20 |he.right| of the |
|00000ad0| 70 6f 69 6e 74 20 74 68 | 61 74 20 69 73 20 75 73 |point th|at is us|
|00000ae0| 65 64 20 74 6f 20 61 64 | 64 72 65 73 73 20 69 74 |ed to ad|dress it|
|00000af0| 2e 20 54 68 65 20 62 6f | 75 6e 64 69 6e 67 20 72 |. The bo|unding r|
|00000b00| 65 63 74 61 6e 67 6c 65 | 20 66 6f 72 20 61 0d 70 |ectangle| for a.p|
|00000b10| 69 78 65 6c 20 61 74 20 | 78 2c 79 2c 20 69 73 20 |ixel at |x,y, is |
|00000b20| 53 65 74 52 65 63 74 28 | 26 72 2c 78 2c 79 2c 78 |SetRect(|&r,x,y,x|
|00000b30| 2b 31 2c 79 2b 31 29 2e | 0d 0d 54 68 65 20 63 6f |+1,y+1).|..The co|
|00000b40| 64 65 20 61 73 73 75 6d | 65 73 20 46 6f 72 65 43 |de assum|es ForeC|
|00000b50| 6f 6c 6f 72 20 69 73 20 | 62 6c 61 63 6b 20 61 6e |olor is |black an|
|00000b60| 64 20 74 68 61 74 20 54 | 65 78 74 4d 6f 64 65 20 |d that T|extMode |
|00000b70| 69 73 20 73 72 63 4f 72 | 2c 20 77 68 69 63 68 20 |is srcOr|, which |
|00000b80| 61 72 65 20 74 68 65 20 | 0d 64 65 66 61 75 6c 74 |are the |.default|
|00000b90| 20 73 65 74 74 69 6e 67 | 73 20 66 6f 72 20 74 68 | setting|s for th|
|00000ba0| 65 20 47 57 6f 72 6c 64 | 20 74 68 61 74 20 77 65 |e GWorld| that we|
|00000bb0| 20 63 72 65 61 74 65 2e | 0d 0d 48 49 53 54 4f 52 | create.|..HISTOR|
|00000bc0| 59 3a 0d 31 2f 31 37 2f | 39 34 20 64 67 70 20 77 |Y:.1/17/|94 dgp w|
|00000bd0| 72 6f 74 65 20 69 74 2c | 20 62 61 73 65 64 20 6f |rote it,| based o|
|00000be0| 6e 20 64 69 73 63 75 73 | 73 69 6f 6e 20 77 69 74 |n discus|sion wit|
|00000bf0| 68 20 42 61 72 74 20 46 | 61 72 65 6c 6c 20 61 6e |h Bart F|arell an|
|00000c00| 64 20 4d 61 6e 6f 6a 20 | 47 75 6e 77 61 6e 69 2e |d Manoj |Gunwani.|
|00000c10| 0d 32 2f 32 32 2f 39 34 | 09 64 67 70 09 61 64 64 |.2/22/94|.dgp.add|
|00000c20| 65 64 20 63 6f 75 6e 74 | 20 61 72 67 75 6d 65 6e |ed count| argumen|
|00000c30| 74 2c 20 61 6e 64 20 6d | 61 64 65 20 62 6f 74 68 |t, and m|ade both|
|00000c40| 20 62 6f 75 6e 64 73 20 | 61 6e 64 20 63 6f 75 6e | bounds |and coun|
|00000c50| 74 20 6f 70 74 69 6f 6e | 61 6c 2e 0d 32 2f 32 37 |t option|al..2/27|
|00000c60| 2f 39 34 09 64 67 70 20 | 73 69 6e 63 65 20 74 68 |/94.dgp |since th|
|00000c70| 69 73 20 72 6f 75 74 69 | 6e 65 20 69 73 20 74 79 |is routi|ne is ty|
|00000c80| 70 69 63 61 6c 6c 79 20 | 63 61 6c 6c 65 64 20 72 |pically |called r|
|00000c90| 65 70 65 61 74 65 64 6c | 79 20 49 20 73 61 76 65 |epeatedl|y I save|
|00000ca0| 20 74 69 6d 65 0d 09 09 | 09 28 30 2e 32 20 73 20 | time...|.(0.2 s |
|00000cb0| 70 65 72 20 63 61 6c 6c | 29 20 62 79 20 6f 6e 6c |per call|) by onl|
|00000cc0| 79 20 61 6c 6c 6f 63 61 | 74 69 6e 67 20 74 68 65 |y alloca|ting the|
|00000cd0| 20 47 57 6f 72 6c 64 20 | 6f 6e 63 65 2c 20 61 6e | GWorld |once, an|
|00000ce0| 64 20 6e 65 76 65 72 0d | 09 09 09 66 72 65 65 69 |d never.|...freei|
|00000cf0| 6e 67 20 69 74 2e 20 49 | 74 20 69 73 20 72 65 75 |ng it. I|t is reu|
|00000d00| 73 65 64 20 6f 6e 20 73 | 75 62 73 65 71 75 65 6e |sed on s|ubsequen|
|00000d10| 74 20 63 61 6c 6c 73 2c | 20 72 65 73 69 7a 65 64 |t calls,| resized|
|00000d20| 20 61 70 70 72 6f 70 72 | 69 61 74 65 6c 79 0d 09 | appropr|iately..|
|00000d30| 09 09 69 66 20 6e 65 63 | 65 73 73 61 72 79 2e 0d |..if nec|essary..|
|00000d40| 39 2f 35 2f 39 34 20 64 | 67 70 20 72 65 6d 6f 76 |9/5/94 d|gp remov|
|00000d50| 65 64 20 61 73 73 75 6d | 70 74 69 6f 6e 20 69 6e |ed assum|ption in|
|00000d60| 20 70 72 69 6e 74 66 27 | 73 20 74 68 61 74 20 69 | printf'|s that i|
|00000d70| 6e 74 3d 3d 73 68 6f 72 | 74 2e 0d 31 31 2f 32 2f |nt==shor|t..11/2/|
|00000d80| 39 34 20 64 67 70 20 64 | 69 73 63 6f 76 65 72 65 |94 dgp d|iscovere|
|00000d90| 64 20 74 68 61 74 20 74 | 68 65 20 63 6c 69 70 20 |d that t|he clip |
|00000da0| 72 65 63 74 20 6d 61 79 | 20 62 65 20 6e 6f 6e 73 |rect may| be nons|
|00000db0| 65 6e 73 65 20 61 66 74 | 65 72 20 63 61 6c 6c 69 |ense aft|er calli|
|00000dc0| 6e 67 0d 09 09 09 55 70 | 64 61 74 65 47 57 6f 72 |ng....Up|dateGWor|
|00000dd0| 6c 64 2c 20 73 6f 20 49 | 20 73 65 74 20 69 74 20 |ld, so I| set it |
|00000de0| 65 71 75 61 6c 20 74 6f | 20 74 68 65 20 70 6f 72 |equal to| the por|
|00000df0| 74 52 65 63 74 2e 0d 32 | 2f 32 30 2f 39 35 20 64 |tRect..2|/20/95 d|
|00000e00| 67 70 20 41 64 64 65 64 | 20 53 74 72 69 6e 67 4f |gp Added| StringO|
|00000e10| 75 74 6c 69 6e 65 4c 65 | 6e 67 74 68 20 61 6e 64 |utlineLe|ngth and|
|00000e20| 20 53 74 72 4f 75 74 6c | 69 6e 65 4c 65 6e 67 74 | StrOutl|ineLengt|
|00000e30| 68 2e 0d 32 2f 32 34 2f | 39 35 20 64 67 70 20 46 |h..2/24/|95 dgp F|
|00000e40| 69 78 65 64 20 61 62 6f | 76 65 20 74 6f 20 67 69 |ixed abo|ve to gi|
|00000e50| 76 65 20 63 6f 72 72 65 | 63 74 20 6c 65 6e 67 74 |ve corre|ct lengt|
|00000e60| 68 20 65 76 65 6e 20 77 | 68 65 6e 20 73 74 72 6f |h even w|hen stro|
|00000e70| 6b 65 20 69 73 20 6f 6e | 6c 79 20 6f 6e 65 20 70 |ke is on|ly one p|
|00000e80| 69 78 65 6c 20 74 68 69 | 63 6b 2e 0d 2a 2f 0d 23 |ixel thi|ck..*/.#|
|00000e90| 69 6e 63 6c 75 64 65 20 | 22 56 69 64 65 6f 54 6f |include |"VideoTo|
|00000ea0| 6f 6c 62 6f 78 2e 68 22 | 0d 23 69 6e 63 6c 75 64 |olbox.h"|.#includ|
|00000eb0| 65 20 3c 61 73 73 65 72 | 74 2e 68 3e 0d 23 64 65 |e <asser|t.h>.#de|
|00000ec0| 66 69 6e 65 20 53 48 4f | 57 5f 42 49 54 4d 41 50 |fine SHO|W_BITMAP|
|00000ed0| 53 20 30 09 2f 2f 20 66 | 6f 72 20 64 65 62 75 67 |S 0.// f|or debug|
|00000ee0| 67 69 6e 67 0d 0d 64 6f | 75 62 6c 65 20 53 74 72 |ging..do|uble Str|
|00000ef0| 4f 75 74 6c 69 6e 65 4c | 65 6e 67 74 68 28 63 68 |OutlineL|ength(ch|
|00000f00| 61 72 20 2a 73 29 3b 0d | 64 6f 75 62 6c 65 20 53 |ar *s);.|double S|
|00000f10| 74 72 69 6e 67 4f 75 74 | 6c 69 6e 65 4c 65 6e 67 |tringOut|lineLeng|
|00000f20| 74 68 28 63 6f 6e 73 74 | 20 75 6e 73 69 67 6e 65 |th(const| unsigne|
|00000f30| 64 20 63 68 61 72 20 2a | 73 29 3b 0d 0d 76 6f 69 |d char *|s);..voi|
|00000f40| 64 20 43 68 61 72 42 6f | 75 6e 64 73 28 63 68 61 |d CharBo|unds(cha|
|00000f50| 72 20 61 2c 52 65 63 74 | 20 2a 62 6f 75 6e 64 73 |r a,Rect| *bounds|
|00000f60| 50 74 72 2c 6c 6f 6e 67 | 20 2a 63 6f 75 6e 74 50 |Ptr,long| *countP|
|00000f70| 74 72 29 0d 7b 0d 09 75 | 6e 73 69 67 6e 65 64 20 |tr).{..u|nsigned |
|00000f80| 63 68 61 72 20 73 74 72 | 69 6e 67 5b 5d 3d 22 5c |char str|ing[]="\|
|00000f90| 70 41 22 3b 0d 09 0d 09 | 73 74 72 69 6e 67 5b 31 |pA";....|string[1|
|00000fa0| 5d 3d 61 3b 0d 09 53 74 | 72 69 6e 67 42 6f 75 6e |]=a;..St|ringBoun|
|00000fb0| 64 73 28 73 74 72 69 6e | 67 2c 62 6f 75 6e 64 73 |ds(strin|g,bounds|
|00000fc0| 50 74 72 2c 63 6f 75 6e | 74 50 74 72 29 3b 0d 7d |Ptr,coun|tPtr);.}|
|00000fd0| 0d 0d 76 6f 69 64 20 53 | 74 72 42 6f 75 6e 64 73 |..void S|trBounds|
|00000fe0| 28 63 68 61 72 20 2a 73 | 2c 52 65 63 74 20 2a 62 |(char *s|,Rect *b|
|00000ff0| 6f 75 6e 64 73 50 74 72 | 2c 6c 6f 6e 67 20 2a 63 |oundsPtr|,long *c|
|00001000| 6f 75 6e 74 50 74 72 29 | 0d 7b 0d 09 53 74 72 69 |ountPtr)|.{..Stri|
|00001010| 6e 67 42 6f 75 6e 64 73 | 28 63 32 70 73 74 72 28 |ngBounds|(c2pstr(|
|00001020| 73 29 2c 62 6f 75 6e 64 | 73 50 74 72 2c 63 6f 75 |s),bound|sPtr,cou|
|00001030| 6e 74 50 74 72 29 3b 0d | 09 70 32 63 73 74 72 28 |ntPtr);.|.p2cstr(|
|00001040| 28 75 6e 73 69 67 6e 65 | 64 20 63 68 61 72 20 2a |(unsigne|d char *|
|00001050| 29 73 29 3b 0d 7d 0d 0d | 76 6f 69 64 20 53 74 72 |)s);.}..|void Str|
|00001060| 69 6e 67 42 6f 75 6e 64 | 73 28 63 6f 6e 73 74 20 |ingBound|s(const |
|00001070| 75 6e 73 69 67 6e 65 64 | 20 63 68 61 72 20 2a 73 |unsigned| char *s|
|00001080| 2c 52 65 63 74 20 2a 62 | 6f 75 6e 64 73 50 74 72 |,Rect *b|oundsPtr|
|00001090| 2c 6c 6f 6e 67 20 2a 63 | 6f 75 6e 74 50 74 72 29 |,long *c|ountPtr)|
|000010a0| 0d 7b 0d 09 73 74 61 74 | 69 63 20 47 57 6f 72 6c |.{..stat|ic GWorl|
|000010b0| 64 50 74 72 20 6f 75 72 | 3d 4e 55 4c 4c 3b 0d 09 |dPtr our|=NULL;..|
|000010c0| 47 57 6f 72 6c 64 50 74 | 72 20 6f 6c 64 3b 0d 09 |GWorldPt|r old;..|
|000010d0| 47 44 48 61 6e 64 6c 65 | 20 6f 6c 64 44 65 76 69 |GDHandle| oldDevi|
|000010e0| 63 65 3b 0d 09 46 6f 6e | 74 49 6e 66 6f 20 66 3b |ce;..Fon|tInfo f;|
|000010f0| 0d 20 20 20 20 52 65 63 | 74 20 72 3b 0d 09 72 65 |. Rec|t r;..re|
|00001100| 67 69 73 74 65 72 20 75 | 6e 73 69 67 6e 65 64 20 |gister u|nsigned |
|00001110| 6c 6f 6e 67 20 2a 70 69 | 78 3b 0d 09 72 65 67 69 |long *pi|x;..regi|
|00001120| 73 74 65 72 20 69 6e 74 | 20 78 2c 79 3b 0d 09 72 |ster int| x,y;..r|
|00001130| 65 67 69 73 74 65 72 20 | 6c 6f 6e 67 20 63 6f 75 |egister |long cou|
|00001140| 6e 74 3d 30 3b 0d 09 69 | 6e 74 20 6e 3b 0d 09 69 |nt=0;..i|nt n;..i|
|00001150| 6e 74 20 65 72 72 6f 72 | 3b 0d 09 52 65 63 74 20 |nt error|;..Rect |
|00001160| 62 6f 75 6e 64 73 3b 0d | 09 63 68 61 72 20 73 74 |bounds;.|.char st|
|00001170| 72 69 6e 67 5b 34 30 5d | 3b 0d 0d 09 61 73 73 65 |ring[40]|;...asse|
|00001180| 72 74 28 53 74 61 63 6b | 53 70 61 63 65 28 29 3e |rt(Stack|Space()>|
|00001190| 34 30 30 30 29 3b 0d 09 | 47 65 74 46 6f 6e 74 49 |4000);..|GetFontI|
|000011a0| 6e 66 6f 28 26 66 29 3b | 0d 09 53 65 74 52 65 63 |nfo(&f);|..SetRec|
|000011b0| 74 28 26 72 2c 30 2c 2d | 66 2e 61 73 63 65 6e 74 |t(&r,0,-|f.ascent|
|000011c0| 2c 53 74 72 69 6e 67 57 | 69 64 74 68 28 73 29 2c |,StringW|idth(s),|
|000011d0| 66 2e 64 65 73 63 65 6e | 74 29 3b 09 2f 2f 20 6e |f.descen|t);.// n|
|000011e0| 6f 6d 69 6e 61 6c 20 73 | 69 7a 65 0d 09 49 6e 73 |ominal s|ize..Ins|
|000011f0| 65 74 52 65 63 74 28 26 | 72 2c 2d 28 66 2e 77 69 |etRect(&|r,-(f.wi|
|00001200| 64 4d 61 78 2b 32 29 2c | 2d 28 66 2e 6c 65 61 64 |dMax+2),|-(f.lead|
|00001210| 69 6e 67 2b 32 29 29 3b | 20 09 09 2f 2f 20 61 64 |ing+2));| ..// ad|
|00001220| 64 20 6d 61 72 67 69 6e | 0d 0d 09 2f 2f 20 64 72 |d margin|...// dr|
|00001230| 61 77 20 73 74 72 69 6e | 67 20 69 6e 74 6f 20 61 |aw strin|g into a|
|00001240| 20 6e 65 77 20 47 57 6f | 72 6c 64 0d 09 69 66 28 | new GWo|rld..if(|
|00001250| 6f 75 72 21 3d 4e 55 4c | 4c 29 7b 0d 09 09 44 69 |our!=NUL|L){...Di|
|00001260| 73 70 6f 73 65 47 57 6f | 72 6c 64 28 6f 75 72 29 |sposeGWo|rld(our)|
|00001270| 3b 0d 09 09 6f 75 72 3d | 4e 55 4c 4c 3b 0d 09 7d |;...our=|NULL;..}|
|00001280| 0d 09 69 66 28 6f 75 72 | 3d 3d 4e 55 4c 4c 29 7b |..if(our|==NULL){|
|00001290| 0d 09 09 65 72 72 6f 72 | 3d 4e 65 77 47 57 6f 72 |...error|=NewGWor|
|000012a0| 6c 64 28 26 6f 75 72 2c | 31 2c 26 72 2c 4e 55 4c |ld(&our,|1,&r,NUL|
|000012b0| 4c 2c 4e 55 4c 4c 2c 6b | 65 65 70 4c 6f 63 61 6c |L,NULL,k|eepLocal|
|000012c0| 7c 75 73 65 54 65 6d 70 | 4d 65 6d 29 3b 0d 09 09 ||useTemp|Mem);...|
|000012d0| 69 66 28 65 72 72 6f 72 | 29 65 72 72 6f 72 3d 4e |if(error|)error=N|
|000012e0| 65 77 47 57 6f 72 6c 64 | 28 26 6f 75 72 2c 31 2c |ewGWorld|(&our,1,|
|000012f0| 26 72 2c 4e 55 4c 4c 2c | 4e 55 4c 4c 2c 6b 65 65 |&r,NULL,|NULL,kee|
|00001300| 70 4c 6f 63 61 6c 29 3b | 0d 09 7d 65 6c 73 65 7b |pLocal);|..}else{|
|00001310| 0d 09 09 65 72 72 6f 72 | 3d 55 70 64 61 74 65 47 |...error|=UpdateG|
|00001320| 57 6f 72 6c 64 28 26 6f | 75 72 2c 31 2c 26 72 2c |World(&o|ur,1,&r,|
|00001330| 4e 55 4c 4c 2c 4e 55 4c | 4c 2c 63 6c 69 70 50 69 |NULL,NUL|L,clipPi|
|00001340| 78 29 3b 0d 09 09 61 73 | 73 65 72 74 28 45 71 75 |x);...as|sert(Equ|
|00001350| 61 6c 52 65 63 74 28 26 | 72 2c 26 6f 75 72 2d 3e |alRect(&|r,&our->|
|00001360| 70 6f 72 74 52 65 63 74 | 29 29 3b 0d 09 09 61 73 |portRect|));...as|
|00001370| 73 65 72 74 28 28 2a 2a | 6f 75 72 2d 3e 63 6c 69 |sert((**|our->cli|
|00001380| 70 52 67 6e 29 2e 72 67 | 6e 53 69 7a 65 3d 3d 31 |pRgn).rg|nSize==1|
|00001390| 30 29 3b 0d 09 09 28 2a | 2a 6f 75 72 2d 3e 63 6c |0);...(*|*our->cl|
|000013a0| 69 70 52 67 6e 29 2e 72 | 67 6e 42 42 6f 78 3d 6f |ipRgn).r|gnBBox=o|
|000013b0| 75 72 2d 3e 70 6f 72 74 | 52 65 63 74 3b 0d 09 7d |ur->port|Rect;..}|
|000013c0| 0d 09 69 66 28 65 72 72 | 6f 72 29 50 72 69 6e 74 |..if(err|or)Print|
|000013d0| 66 45 78 69 74 28 22 53 | 74 72 69 6e 67 42 6f 75 |fExit("S|tringBou|
|000013e0| 6e 64 73 3a 20 4e 65 77 | 47 57 6f 72 6c 64 2f 55 |nds: New|GWorld/U|
|000013f0| 70 64 61 74 65 47 57 6f | 72 6c 64 20 65 72 72 6f |pdateGWo|rld erro|
|00001400| 72 20 25 64 2e 5c 6e 22 | 2c 65 72 72 6f 72 29 3b |r %d.\n"|,error);|
|00001410| 0d 09 47 65 74 47 57 6f | 72 6c 64 28 26 6f 6c 64 |..GetGWo|rld(&old|
|00001420| 2c 26 6f 6c 64 44 65 76 | 69 63 65 29 3b 0d 09 53 |,&oldDev|ice);..S|
|00001430| 65 74 47 57 6f 72 6c 64 | 28 6f 75 72 2c 4e 55 4c |etGWorld|(our,NUL|
|00001440| 4c 29 3b 0d 09 54 65 78 | 74 46 61 63 65 28 6f 6c |L);..Tex|tFace(ol|
|00001450| 64 2d 3e 74 78 46 61 63 | 65 29 3b 0d 09 54 65 78 |d->txFac|e);..Tex|
|00001460| 74 46 6f 6e 74 28 6f 6c | 64 2d 3e 74 78 46 6f 6e |tFont(ol|d->txFon|
|00001470| 74 29 3b 0d 09 54 65 78 | 74 53 69 7a 65 28 6f 6c |t);..Tex|tSize(ol|
|00001480| 64 2d 3e 74 78 53 69 7a | 65 29 3b 0d 09 45 72 61 |d->txSiz|e);..Era|
|00001490| 73 65 52 65 63 74 28 26 | 6f 75 72 2d 3e 70 6f 72 |seRect(&|our->por|
|000014a0| 74 52 65 63 74 29 3b 0d | 09 4d 6f 76 65 54 6f 28 |tRect);.|.MoveTo(|
|000014b0| 30 2c 30 29 3b 0d 09 44 | 72 61 77 53 74 72 69 6e |0,0);..D|rawStrin|
|000014c0| 67 28 73 29 3b 0d 09 53 | 65 74 47 57 6f 72 6c 64 |g(s);..S|etGWorld|
|000014d0| 28 6f 6c 64 2c 6f 6c 64 | 44 65 76 69 63 65 29 3b |(old,old|Device);|
|000014e0| 0d 09 69 66 28 53 48 4f | 57 5f 42 49 54 4d 41 50 |..if(SHO|W_BITMAP|
|000014f0| 53 29 7b 0d 09 09 50 72 | 69 6e 74 66 47 57 6f 72 |S){...Pr|intfGWor|
|00001500| 6c 64 28 6f 75 72 29 3b | 0d 09 09 67 65 74 73 28 |ld(our);|...gets(|
|00001510| 73 74 72 69 6e 67 29 3b | 0d 09 7d 0d 0d 09 2f 2f |string);|..}...//|
|00001520| 20 6d 65 61 73 75 72 65 | 20 74 68 65 20 62 6f 75 | measure| the bou|
|00001530| 6e 64 69 6e 67 20 62 6f | 78 2c 20 61 6e 64 20 63 |nding bo|x, and c|
|00001540| 6f 75 6e 74 20 74 68 65 | 20 62 6c 61 63 6b 20 70 |ount the| black p|
|00001550| 69 78 65 6c 73 0d 09 72 | 3d 6f 75 72 2d 3e 70 6f |ixels..r|=our->po|
|00001560| 72 74 52 65 63 74 3b 0d | 09 53 65 74 52 65 63 74 |rtRect;.|.SetRect|
|00001570| 28 26 62 6f 75 6e 64 73 | 2c 72 2e 72 69 67 68 74 |(&bounds|,r.right|
|00001580| 2c 72 2e 62 6f 74 74 6f | 6d 2c 72 2e 6c 65 66 74 |,r.botto|m,r.left|
|00001590| 2c 72 2e 74 6f 70 29 3b | 0d 09 6e 3d 72 2e 72 69 |,r.top);|..n=r.ri|
|000015a0| 67 68 74 2d 72 2e 6c 65 | 66 74 3b 0d 09 70 69 78 |ght-r.le|ft;..pix|
|000015b0| 3d 28 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 20 |=(unsign|ed long |
|000015c0| 2a 29 6d 61 6c 6c 6f 63 | 28 6e 2a 73 69 7a 65 6f |*)malloc|(n*sizeo|
|000015d0| 66 28 2a 70 69 78 29 29 | 3b 0d 09 69 66 28 70 69 |f(*pix))|;..if(pi|
|000015e0| 78 3d 3d 4e 55 4c 4c 29 | 50 72 69 6e 74 66 45 78 |x==NULL)|PrintfEx|
|000015f0| 69 74 28 22 25 73 20 6c | 69 6e 65 20 25 64 3a 20 |it("%s l|ine %d: |
|00001600| 43 6f 75 6c 64 6e 27 74 | 20 61 6c 6c 6f 63 61 74 |Couldn't| allocat|
|00001610| 65 20 25 6c 64 20 62 79 | 74 65 73 2e 5c 6e 22 0d |e %ld by|tes.\n".|
|00001620| 09 09 2c 5f 5f 46 49 4c | 45 5f 5f 2c 5f 5f 4c 49 |..,__FIL|E__,__LI|
|00001630| 4e 45 5f 5f 2c 6e 2a 73 | 69 7a 65 6f 66 28 6c 6f |NE__,n*s|izeof(lo|
|00001640| 6e 67 29 29 3b 0d 09 53 | 65 74 47 57 6f 72 6c 64 |ng));..S|etGWorld|
|00001650| 28 6f 75 72 2c 4e 55 4c | 4c 29 3b 0d 09 4f 66 66 |(our,NUL|L);..Off|
|00001660| 73 65 74 52 65 63 74 28 | 26 62 6f 75 6e 64 73 2c |setRect(|&bounds,|
|00001670| 2d 72 2e 6c 65 66 74 2c | 2d 72 2e 74 6f 70 29 3b |-r.left,|-r.top);|
|00001680| 0d 09 66 6f 72 28 79 3d | 30 3b 79 3c 72 2e 62 6f |..for(y=|0;y<r.bo|
|00001690| 74 74 6f 6d 2d 72 2e 74 | 6f 70 3b 79 2b 2b 29 7b |ttom-r.t|op;y++){|
|000016a0| 0d 09 09 47 65 74 50 69 | 78 65 6c 73 51 75 69 63 |...GetPi|xelsQuic|
|000016b0| 6b 6c 79 28 72 2e 6c 65 | 66 74 2c 72 2e 74 6f 70 |kly(r.le|ft,r.top|
|000016c0| 2b 79 2c 70 69 78 2c 6e | 29 3b 0d 09 09 66 6f 72 |+y,pix,n|);...for|
|000016d0| 28 78 3d 6e 2d 31 3b 78 | 3e 3d 30 3b 78 2d 2d 29 |(x=n-1;x|>=0;x--)|
|000016e0| 69 66 28 70 69 78 5b 78 | 5d 21 3d 30 29 7b 0d 09 |if(pix[x|]!=0){..|
|000016f0| 09 09 63 6f 75 6e 74 2b | 2b 3b 0d 09 09 09 69 66 |..count+|+;....if|
|00001700| 28 78 3c 62 6f 75 6e 64 | 73 2e 6c 65 66 74 29 62 |(x<bound|s.left)b|
|00001710| 6f 75 6e 64 73 2e 6c 65 | 66 74 3d 78 3b 0d 09 09 |ounds.le|ft=x;...|
|00001720| 09 69 66 28 78 3e 3d 62 | 6f 75 6e 64 73 2e 72 69 |.if(x>=b|ounds.ri|
|00001730| 67 68 74 29 62 6f 75 6e | 64 73 2e 72 69 67 68 74 |ght)boun|ds.right|
|00001740| 3d 78 2b 31 3b 0d 09 09 | 09 69 66 28 79 3c 62 6f |=x+1;...|.if(y<bo|
|00001750| 75 6e 64 73 2e 74 6f 70 | 29 62 6f 75 6e 64 73 2e |unds.top|)bounds.|
|00001760| 74 6f 70 3d 79 3b 0d 09 | 09 09 69 66 28 79 3e 3d |top=y;..|..if(y>=|
|00001770| 62 6f 75 6e 64 73 2e 62 | 6f 74 74 6f 6d 29 62 6f |bounds.b|ottom)bo|
|00001780| 75 6e 64 73 2e 62 6f 74 | 74 6f 6d 3d 79 2b 31 3b |unds.bot|tom=y+1;|
|00001790| 0d 09 09 7d 0d 09 7d 0d | 09 4f 66 66 73 65 74 52 |...}..}.|.OffsetR|
|000017a0| 65 63 74 28 26 62 6f 75 | 6e 64 73 2c 72 2e 6c 65 |ect(&bou|nds,r.le|
|000017b0| 66 74 2c 72 2e 74 6f 70 | 29 3b 0d 09 69 66 28 53 |ft,r.top|);..if(S|
|000017c0| 48 4f 57 5f 42 49 54 4d | 41 50 53 29 7b 0d 09 09 |HOW_BITM|APS){...|
|000017d0| 50 72 69 6e 74 66 47 57 | 6f 72 6c 64 28 6f 75 72 |PrintfGW|orld(our|
|000017e0| 29 3b 0d 09 09 67 65 74 | 73 28 73 74 72 69 6e 67 |);...get|s(string|
|000017f0| 29 3b 0d 09 7d 0d 09 53 | 65 74 47 57 6f 72 6c 64 |);..}..S|etGWorld|
|00001800| 28 6f 6c 64 2c 6f 6c 64 | 44 65 76 69 63 65 29 3b |(old,old|Device);|
|00001810| 0d 09 69 66 28 45 6d 70 | 74 79 52 65 63 74 28 26 |..if(Emp|tyRect(&|
|00001820| 62 6f 75 6e 64 73 29 29 | 53 65 74 52 65 63 74 28 |bounds))|SetRect(|
|00001830| 26 62 6f 75 6e 64 73 2c | 30 2c 30 2c 30 2c 30 29 |&bounds,|0,0,0,0)|
|00001840| 3b 0d 09 66 72 65 65 28 | 70 69 78 29 3b 09 0d 09 |;..free(|pix);...|
|00001850| 69 66 28 30 29 7b 0d 09 | 09 44 69 73 70 6f 73 65 |if(0){..|.Dispose|
|00001860| 47 57 6f 72 6c 64 28 6f | 75 72 29 3b 0d 09 09 6f |GWorld(o|ur);...o|
|00001870| 75 72 3d 4e 55 4c 4c 3b | 0d 09 7d 0d 09 69 66 28 |ur=NULL;|..}..if(|
|00001880| 62 6f 75 6e 64 73 50 74 | 72 21 3d 4e 55 4c 4c 29 |boundsPt|r!=NULL)|
|00001890| 2a 62 6f 75 6e 64 73 50 | 74 72 3d 62 6f 75 6e 64 |*boundsP|tr=bound|
|000018a0| 73 3b 0d 09 69 66 28 63 | 6f 75 6e 74 50 74 72 21 |s;..if(c|ountPtr!|
|000018b0| 3d 4e 55 4c 4c 29 2a 63 | 6f 75 6e 74 50 74 72 3d |=NULL)*c|ountPtr=|
|000018c0| 63 6f 75 6e 74 3b 0d 7d | 0d 0d 64 6f 75 62 6c 65 |count;.}|..double|
|000018d0| 20 53 74 72 4f 75 74 6c | 69 6e 65 4c 65 6e 67 74 | StrOutl|ineLengt|
|000018e0| 68 28 63 68 61 72 20 2a | 73 29 0d 7b 0d 09 64 6f |h(char *|s).{..do|
|000018f0| 75 62 6c 65 20 6c 65 6e | 67 74 68 3b 0d 0d 09 6c |uble len|gth;...l|
|00001900| 65 6e 67 74 68 3d 53 74 | 72 69 6e 67 4f 75 74 6c |ength=St|ringOutl|
|00001910| 69 6e 65 4c 65 6e 67 74 | 68 28 63 32 70 73 74 72 |ineLengt|h(c2pstr|
|00001920| 28 73 29 29 3b 0d 09 70 | 32 63 73 74 72 28 28 75 |(s));..p|2cstr((u|
|00001930| 6e 73 69 67 6e 65 64 20 | 63 68 61 72 20 2a 29 73 |nsigned |char *)s|
|00001940| 29 3b 0d 09 72 65 74 75 | 72 6e 20 6c 65 6e 67 74 |);..retu|rn lengt|
|00001950| 68 3b 0d 7d 0d 0d 2f 2f | 23 75 6e 64 65 66 20 53 |h;.}..//|#undef S|
|00001960| 48 4f 57 5f 42 49 54 4d | 41 50 53 0d 2f 2f 23 64 |HOW_BITM|APS.//#d|
|00001970| 65 66 69 6e 65 20 53 48 | 4f 57 5f 42 49 54 4d 41 |efine SH|OW_BITMA|
|00001980| 50 53 20 31 0d 0d 64 6f | 75 62 6c 65 20 53 74 72 |PS 1..do|uble Str|
|00001990| 69 6e 67 4f 75 74 6c 69 | 6e 65 4c 65 6e 67 74 68 |ingOutli|neLength|
|000019a0| 28 63 6f 6e 73 74 20 75 | 6e 73 69 67 6e 65 64 20 |(const u|nsigned |
|000019b0| 63 68 61 72 20 2a 73 29 | 0d 7b 0d 09 73 74 61 74 |char *s)|.{..stat|
|000019c0| 69 63 20 47 57 6f 72 6c | 64 50 74 72 20 77 6f 72 |ic GWorl|dPtr wor|
|000019d0| 6c 64 3d 4e 55 4c 4c 3b | 0d 09 47 57 6f 72 6c 64 |ld=NULL;|..GWorld|
|000019e0| 50 74 72 20 6f 6c 64 3b | 0d 09 47 44 48 61 6e 64 |Ptr old;|..GDHand|
|000019f0| 6c 65 20 6f 6c 64 44 65 | 76 69 63 65 3b 0d 09 46 |le oldDe|vice;..F|
|00001a00| 6f 6e 74 49 6e 66 6f 20 | 66 3b 0d 20 20 20 20 52 |ontInfo |f;. R|
|00001a10| 65 63 74 20 72 2c 72 53 | 72 63 2c 72 44 73 74 2c |ect r,rS|rc,rDst,|
|00001a20| 72 53 6d 61 6c 6c 3b 0d | 09 72 65 67 69 73 74 65 |rSmall;.|.registe|
|00001a30| 72 20 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 20 |r unsign|ed long |
|00001a40| 2a 70 69 78 3b 0d 09 72 | 65 67 69 73 74 65 72 20 |*pix;..r|egister |
|00001a50| 69 6e 74 20 78 2c 79 3b | 0d 09 72 65 67 69 73 74 |int x,y;|..regist|
|00001a60| 65 72 20 6c 6f 6e 67 20 | 63 6f 75 6e 74 3d 30 3b |er long |count=0;|
|00001a70| 0d 09 69 6e 74 20 6e 3b | 0d 09 69 6e 74 20 65 72 |..int n;|..int er|
|00001a80| 72 6f 72 3b 0d 09 63 68 | 61 72 20 73 74 72 69 6e |ror;..ch|ar strin|
|00001a90| 67 5b 34 30 5d 3b 0d 0d | 09 61 73 73 65 72 74 28 |g[40];..|.assert(|
|00001aa0| 53 74 61 63 6b 53 70 61 | 63 65 28 29 3e 34 30 30 |StackSpa|ce()>400|
|00001ab0| 30 29 3b 0d 09 47 65 74 | 46 6f 6e 74 49 6e 66 6f |0);..Get|FontInfo|
|00001ac0| 28 26 66 29 3b 0d 09 53 | 65 74 52 65 63 74 28 26 |(&f);..S|etRect(&|
|00001ad0| 72 53 6d 61 6c 6c 2c 30 | 2c 2d 66 2e 61 73 63 65 |rSmall,0|,-f.asce|
|00001ae0| 6e 74 2c 53 74 72 69 6e | 67 57 69 64 74 68 28 73 |nt,Strin|gWidth(s|
|00001af0| 29 2c 66 2e 64 65 73 63 | 65 6e 74 29 3b 09 2f 2f |),f.desc|ent);.//|
|00001b00| 20 6e 6f 6d 69 6e 61 6c | 20 73 69 7a 65 0d 09 49 | nominal| size..I|
|00001b10| 6e 73 65 74 52 65 63 74 | 28 26 72 53 6d 61 6c 6c |nsetRect|(&rSmall|
|00001b20| 2c 2d 28 66 2e 77 69 64 | 4d 61 78 2b 34 29 2c 2d |,-(f.wid|Max+4),-|
|00001b30| 28 66 2e 6c 65 61 64 69 | 6e 67 2b 34 29 29 3b 20 |(f.leadi|ng+4)); |
|00001b40| 09 09 2f 2f 20 61 64 64 | 20 6d 61 72 67 69 6e 0d |..// add| margin.|
|00001b50| 09 72 53 72 63 3d 72 53 | 6d 61 6c 6c 3b 0d 09 72 |.rSrc=rS|mall;..r|
|00001b60| 53 72 63 2e 74 6f 70 2a | 3d 32 3b 09 2f 2f 20 61 |Src.top*|=2;.// a|
|00001b70| 6c 6c 6f 77 20 72 6f 6f | 6d 20 66 6f 72 20 64 6f |llow roo|m for do|
|00001b80| 75 62 6c 65 2d 73 69 7a | 65 20 74 65 78 74 0d 09 |uble-siz|e text..|
|00001b90| 72 53 72 63 2e 6c 65 66 | 74 2a 3d 32 3b 0d 09 72 |rSrc.lef|t*=2;..r|
|00001ba0| 53 72 63 2e 62 6f 74 74 | 6f 6d 2a 3d 32 3b 0d 09 |Src.bott|om*=2;..|
|00001bb0| 72 53 72 63 2e 72 69 67 | 68 74 2a 3d 32 3b 0d 09 |rSrc.rig|ht*=2;..|
|00001bc0| 72 3d 72 53 72 63 3b 0d | 09 72 2e 72 69 67 68 74 |r=rSrc;.|.r.right|
|00001bd0| 2b 3d 72 2e 72 69 67 68 | 74 2d 72 2e 6c 65 66 74 |+=r.righ|t-r.left|
|00001be0| 3b 09 2f 2f 20 64 6f 75 | 62 6c 65 20 72 65 63 74 |;.// dou|ble rect|
|00001bf0| 2c 20 74 6f 20 6d 61 6b | 65 20 72 6f 6f 6d 20 66 |, to mak|e room f|
|00001c00| 6f 72 20 72 44 73 74 2e | 0d 09 72 44 73 74 3d 72 |or rDst.|..rDst=r|
|00001c10| 53 72 63 3b 0d 09 4f 66 | 66 73 65 74 52 65 63 74 |Src;..Of|fsetRect|
|00001c20| 28 26 72 44 73 74 2c 72 | 53 72 63 2e 72 69 67 68 |(&rDst,r|Src.righ|
|00001c30| 74 2d 72 53 72 63 2e 6c | 65 66 74 2c 30 29 3b 0d |t-rSrc.l|eft,0);.|
|00001c40| 09 49 6e 73 65 74 52 65 | 63 74 28 26 72 53 72 63 |.InsetRe|ct(&rSrc|
|00001c50| 2c 31 2c 31 29 3b 0d 09 | 49 6e 73 65 74 52 65 63 |,1,1);..|InsetRec|
|00001c60| 74 28 26 72 44 73 74 2c | 31 2c 31 29 3b 0d 0d 09 |t(&rDst,|1,1);...|
|00001c70| 2f 2f 20 64 72 61 77 20 | 73 74 72 69 6e 67 20 69 |// draw |string i|
|00001c80| 6e 74 6f 20 61 20 6e 65 | 77 20 47 57 6f 72 6c 64 |nto a ne|w GWorld|
|00001c90| 0d 09 69 66 28 77 6f 72 | 6c 64 21 3d 4e 55 4c 4c |..if(wor|ld!=NULL|
|00001ca0| 29 7b 0d 09 09 44 69 73 | 70 6f 73 65 47 57 6f 72 |){...Dis|poseGWor|
|00001cb0| 6c 64 28 77 6f 72 6c 64 | 29 3b 0d 09 09 77 6f 72 |ld(world|);...wor|
|00001cc0| 6c 64 3d 4e 55 4c 4c 3b | 0d 09 7d 0d 09 69 66 28 |ld=NULL;|..}..if(|
|00001cd0| 77 6f 72 6c 64 3d 3d 4e | 55 4c 4c 29 7b 0d 09 09 |world==N|ULL){...|
|00001ce0| 65 72 72 6f 72 3d 4e 65 | 77 47 57 6f 72 6c 64 28 |error=Ne|wGWorld(|
|00001cf0| 26 77 6f 72 6c 64 2c 31 | 2c 26 72 2c 4e 55 4c 4c |&world,1|,&r,NULL|
|00001d00| 2c 4e 55 4c 4c 2c 6b 65 | 65 70 4c 6f 63 61 6c 7c |,NULL,ke|epLocal||
|00001d10| 75 73 65 54 65 6d 70 4d | 65 6d 29 3b 0d 09 09 69 |useTempM|em);...i|
|00001d20| 66 28 65 72 72 6f 72 29 | 65 72 72 6f 72 3d 4e 65 |f(error)|error=Ne|
|00001d30| 77 47 57 6f 72 6c 64 28 | 26 77 6f 72 6c 64 2c 31 |wGWorld(|&world,1|
|00001d40| 2c 26 72 2c 4e 55 4c 4c | 2c 4e 55 4c 4c 2c 6b 65 |,&r,NULL|,NULL,ke|
|00001d50| 65 70 4c 6f 63 61 6c 29 | 3b 0d 09 7d 65 6c 73 65 |epLocal)|;..}else|
|00001d60| 7b 0d 09 09 65 72 72 6f | 72 3d 55 70 64 61 74 65 |{...erro|r=Update|
|00001d70| 47 57 6f 72 6c 64 28 26 | 77 6f 72 6c 64 2c 31 2c |GWorld(&|world,1,|
|00001d80| 26 72 2c 4e 55 4c 4c 2c | 4e 55 4c 4c 2c 63 6c 69 |&r,NULL,|NULL,cli|
|00001d90| 70 50 69 78 29 3b 0d 09 | 09 61 73 73 65 72 74 28 |pPix);..|.assert(|
|00001da0| 45 71 75 61 6c 52 65 63 | 74 28 26 72 2c 26 77 6f |EqualRec|t(&r,&wo|
|00001db0| 72 6c 64 2d 3e 70 6f 72 | 74 52 65 63 74 29 29 3b |rld->por|tRect));|
|00001dc0| 0d 09 09 61 73 73 65 72 | 74 28 28 2a 2a 77 6f 72 |...asser|t((**wor|
|00001dd0| 6c 64 2d 3e 63 6c 69 70 | 52 67 6e 29 2e 72 67 6e |ld->clip|Rgn).rgn|
|00001de0| 53 69 7a 65 3d 3d 31 30 | 29 3b 0d 09 09 28 2a 2a |Size==10|);...(**|
|00001df0| 77 6f 72 6c 64 2d 3e 63 | 6c 69 70 52 67 6e 29 2e |world->c|lipRgn).|
|00001e00| 72 67 6e 42 42 6f 78 3d | 77 6f 72 6c 64 2d 3e 70 |rgnBBox=|world->p|
|00001e10| 6f 72 74 52 65 63 74 3b | 0d 09 7d 0d 09 69 66 28 |ortRect;|..}..if(|
|00001e20| 65 72 72 6f 72 29 50 72 | 69 6e 74 66 45 78 69 74 |error)Pr|intfExit|
|00001e30| 28 22 53 74 72 69 6e 67 | 4f 75 74 6c 69 6e 65 4c |("String|OutlineL|
|00001e40| 65 6e 67 74 68 3a 20 4e | 65 77 47 57 6f 72 6c 64 |ength: N|ewGWorld|
|00001e50| 2f 55 70 64 61 74 65 47 | 57 6f 72 6c 64 20 65 72 |/UpdateG|World er|
|00001e60| 72 6f 72 20 25 64 2e 5c | 6e 22 2c 65 72 72 6f 72 |ror %d.\|n",error|
|00001e70| 29 3b 0d 09 47 65 74 47 | 57 6f 72 6c 64 28 26 6f |);..GetG|World(&o|
|00001e80| 6c 64 2c 26 6f 6c 64 44 | 65 76 69 63 65 29 3b 0d |ld,&oldD|evice);.|
|00001e90| 09 53 65 74 47 57 6f 72 | 6c 64 28 77 6f 72 6c 64 |.SetGWor|ld(world|
|00001ea0| 2c 4e 55 4c 4c 29 3b 0d | 09 54 65 78 74 46 61 63 |,NULL);.|.TextFac|
|00001eb0| 65 28 6f 6c 64 2d 3e 74 | 78 46 61 63 65 29 3b 0d |e(old->t|xFace);.|
|00001ec0| 09 54 65 78 74 46 6f 6e | 74 28 6f 6c 64 2d 3e 74 |.TextFon|t(old->t|
|00001ed0| 78 46 6f 6e 74 29 3b 0d | 09 54 65 78 74 53 69 7a |xFont);.|.TextSiz|
|00001ee0| 65 28 6f 6c 64 2d 3e 74 | 78 53 69 7a 65 29 3b 0d |e(old->t|xSize);.|
|00001ef0| 09 45 72 61 73 65 52 65 | 63 74 28 26 77 6f 72 6c |.EraseRe|ct(&worl|
|00001f00| 64 2d 3e 70 6f 72 74 52 | 65 63 74 29 3b 0d 09 4d |d->portR|ect);..M|
|00001f10| 6f 76 65 54 6f 28 30 2c | 30 29 3b 0d 09 44 72 61 |oveTo(0,|0);..Dra|
|00001f20| 77 53 74 72 69 6e 67 28 | 73 29 3b 0d 09 53 65 74 |wString(|s);..Set|
|00001f30| 47 57 6f 72 6c 64 28 6f | 6c 64 2c 6f 6c 64 44 65 |GWorld(o|ld,oldDe|
|00001f40| 76 69 63 65 29 3b 0d 0d | 09 2f 2f 20 45 78 70 61 |vice);..|.// Expa|
|00001f50| 6e 64 20 74 65 78 74 20 | 73 6f 20 74 68 61 74 20 |nd text |so that |
|00001f60| 61 6c 6c 20 66 65 61 74 | 75 72 65 73 20 61 72 65 |all feat|ures are|
|00001f70| 20 61 74 20 6c 65 61 73 | 74 20 32 20 70 69 78 65 | at leas|t 2 pixe|
|00001f80| 6c 73 20 74 68 69 63 6b | 0d 09 65 72 72 6f 72 3d |ls thick|..error=|
|00001f90| 43 6f 70 79 57 69 6e 64 | 6f 77 73 28 77 6f 72 6c |CopyWind|ows(worl|
|00001fa0| 64 2c 77 6f 72 6c 64 2c | 26 72 53 6d 61 6c 6c 2c |d,world,|&rSmall,|
|00001fb0| 26 72 44 73 74 2c 73 72 | 63 43 6f 70 79 2c 4e 55 |&rDst,sr|cCopy,NU|
|00001fc0| 4c 4c 29 3b 0d 09 65 72 | 72 6f 72 3d 43 6f 70 79 |LL);..er|ror=Copy|
|00001fd0| 57 69 6e 64 6f 77 73 28 | 77 6f 72 6c 64 2c 77 6f |Windows(|world,wo|
|00001fe0| 72 6c 64 2c 26 72 44 73 | 74 2c 26 72 53 72 63 2c |rld,&rDs|t,&rSrc,|
|00001ff0| 73 72 63 43 6f 70 79 2c | 4e 55 4c 4c 29 3b 0d 0d |srcCopy,|NULL);..|
|00002000| 09 2f 2f 20 47 72 6f 77 | 20 65 61 63 68 20 62 6c |.// Grow| each bl|
|00002010| 61 63 6b 20 70 69 78 65 | 6c 20 69 6e 74 6f 20 61 |ack pixe|l into a|
|00002020| 20 33 78 33 20 73 71 75 | 61 72 65 2e 0d 09 72 3d | 3x3 squ|are...r=|
|00002030| 72 44 73 74 3b 0d 09 4f | 66 66 73 65 74 52 65 63 |rDst;..O|ffsetRec|
|00002040| 74 28 26 72 2c 30 2c 31 | 29 3b 0d 09 65 72 72 6f |t(&r,0,1|);..erro|
|00002050| 72 3d 43 6f 70 79 57 69 | 6e 64 6f 77 73 28 77 6f |r=CopyWi|ndows(wo|
|00002060| 72 6c 64 2c 77 6f 72 6c | 64 2c 26 72 53 72 63 2c |rld,worl|d,&rSrc,|
|00002070| 26 72 2c 73 72 63 4f 72 | 2c 4e 55 4c 4c 29 3b 0d |&r,srcOr|,NULL);.|
|00002080| 09 4f 66 66 73 65 74 52 | 65 63 74 28 26 72 2c 30 |.OffsetR|ect(&r,0|
|00002090| 2c 2d 32 29 3b 0d 09 65 | 72 72 6f 72 3d 43 6f 70 |,-2);..e|rror=Cop|
|000020a0| 79 57 69 6e 64 6f 77 73 | 28 77 6f 72 6c 64 2c 77 |yWindows|(world,w|
|000020b0| 6f 72 6c 64 2c 26 72 53 | 72 63 2c 26 72 2c 73 72 |orld,&rS|rc,&r,sr|
|000020c0| 63 4f 72 2c 4e 55 4c 4c | 29 3b 0d 09 4f 66 66 73 |cOr,NULL|);..Offs|
|000020d0| 65 74 52 65 63 74 28 26 | 72 2c 31 2c 31 29 3b 0d |etRect(&|r,1,1);.|
|000020e0| 09 65 72 72 6f 72 3d 43 | 6f 70 79 57 69 6e 64 6f |.error=C|opyWindo|
|000020f0| 77 73 28 77 6f 72 6c 64 | 2c 77 6f 72 6c 64 2c 26 |ws(world|,world,&|
|00002100| 72 44 73 74 2c 26 72 2c | 73 72 63 4f 72 2c 4e 55 |rDst,&r,|srcOr,NU|
|00002110| 4c 4c 29 3b 0d 09 4f 66 | 66 73 65 74 52 65 63 74 |LL);..Of|fsetRect|
|00002120| 28 26 72 2c 2d 32 2c 30 | 29 3b 0d 09 65 72 72 6f |(&r,-2,0|);..erro|
|00002130| 72 3d 43 6f 70 79 57 69 | 6e 64 6f 77 73 28 77 6f |r=CopyWi|ndows(wo|
|00002140| 72 6c 64 2c 77 6f 72 6c | 64 2c 26 72 44 73 74 2c |rld,worl|d,&rDst,|
|00002150| 26 72 2c 73 72 63 4f 72 | 2c 4e 55 4c 4c 29 3b 0d |&r,srcOr|,NULL);.|
|00002160| 0d 09 2f 2f 20 43 6c 65 | 61 72 20 74 68 65 20 70 |..// Cle|ar the p|
|00002170| 69 78 65 6c 73 20 63 6f | 72 72 65 73 70 6f 6e 64 |ixels co|rrespond|
|00002180| 69 6e 67 20 74 6f 20 74 | 68 65 20 6f 72 69 67 69 |ing to t|he origi|
|00002190| 6e 61 6c 20 69 6d 61 67 | 65 2c 20 6c 65 61 76 69 |nal imag|e, leavi|
|000021a0| 6e 67 20 61 20 31 20 70 | 69 78 65 6c 20 6f 75 74 |ng a 1 p|ixel out|
|000021b0| 6c 69 6e 65 2e 0d 09 65 | 72 72 6f 72 3d 43 6f 70 |line...e|rror=Cop|
|000021c0| 79 57 69 6e 64 6f 77 73 | 28 77 6f 72 6c 64 2c 77 |yWindows|(world,w|
|000021d0| 6f 72 6c 64 2c 26 72 53 | 72 63 2c 26 72 44 73 74 |orld,&rS|rc,&rDst|
|000021e0| 2c 73 72 63 42 69 63 2c | 4e 55 4c 4c 29 3b 0d 09 |,srcBic,|NULL);..|
|000021f0| 65 72 72 6f 72 3d 43 6f | 70 79 57 69 6e 64 6f 77 |error=Co|pyWindow|
|00002200| 73 28 77 6f 72 6c 64 2c | 77 6f 72 6c 64 2c 26 72 |s(world,|world,&r|
|00002210| 44 73 74 2c 26 72 53 72 | 63 2c 73 72 63 43 6f 70 |Dst,&rSr|c,srcCop|
|00002220| 79 2c 4e 55 4c 4c 29 3b | 0d 0d 09 2f 2f 20 47 72 |y,NULL);|...// Gr|
|00002230| 6f 77 20 65 61 63 68 20 | 62 6c 61 63 6b 20 70 69 |ow each |black pi|
|00002240| 78 65 6c 2c 20 73 6f 20 | 74 68 61 74 20 6c 69 6e |xel, so |that lin|
|00002250| 65 73 20 6f 66 20 61 6c | 6c 20 6f 72 69 65 6e 74 |es of al|l orient|
|00002260| 61 74 69 6f 6e 73 20 61 | 72 65 20 65 66 66 65 63 |ations a|re effec|
|00002270| 74 69 76 65 6c 79 20 33 | 20 70 69 78 65 6c 73 20 |tively 3| pixels |
|00002280| 74 68 69 63 6b 2e 0d 09 | 72 3d 72 44 73 74 3b 0d |thick...|r=rDst;.|
|00002290| 09 4f 66 66 73 65 74 52 | 65 63 74 28 26 72 2c 30 |.OffsetR|ect(&r,0|
|000022a0| 2c 31 29 3b 0d 09 65 72 | 72 6f 72 3d 43 6f 70 79 |,1);..er|ror=Copy|
|000022b0| 57 69 6e 64 6f 77 73 28 | 77 6f 72 6c 64 2c 77 6f |Windows(|world,wo|
|000022c0| 72 6c 64 2c 26 72 53 72 | 63 2c 26 72 2c 73 72 63 |rld,&rSr|c,&r,src|
|000022d0| 4f 72 2c 4e 55 4c 4c 29 | 3b 0d 09 4f 66 66 73 65 |Or,NULL)|;..Offse|
|000022e0| 74 52 65 63 74 28 26 72 | 2c 30 2c 2d 32 29 3b 0d |tRect(&r|,0,-2);.|
|000022f0| 09 65 72 72 6f 72 3d 43 | 6f 70 79 57 69 6e 64 6f |.error=C|opyWindo|
|00002300| 77 73 28 77 6f 72 6c 64 | 2c 77 6f 72 6c 64 2c 26 |ws(world|,world,&|
|00002310| 72 53 72 63 2c 26 72 2c | 73 72 63 4f 72 2c 4e 55 |rSrc,&r,|srcOr,NU|
|00002320| 4c 4c 29 3b 0d 09 4f 66 | 66 73 65 74 52 65 63 74 |LL);..Of|fsetRect|
|00002330| 28 26 72 2c 31 2c 31 29 | 3b 0d 09 65 72 72 6f 72 |(&r,1,1)|;..error|
|00002340| 3d 43 6f 70 79 57 69 6e | 64 6f 77 73 28 77 6f 72 |=CopyWin|dows(wor|
|00002350| 6c 64 2c 77 6f 72 6c 64 | 2c 26 72 53 72 63 2c 26 |ld,world|,&rSrc,&|
|00002360| 72 2c 73 72 63 4f 72 2c | 4e 55 4c 4c 29 3b 0d 09 |r,srcOr,|NULL);..|
|00002370| 4f 66 66 73 65 74 52 65 | 63 74 28 26 72 2c 2d 32 |OffsetRe|ct(&r,-2|
|00002380| 2c 30 29 3b 0d 09 65 72 | 72 6f 72 3d 43 6f 70 79 |,0);..er|ror=Copy|
|00002390| 57 69 6e 64 6f 77 73 28 | 77 6f 72 6c 64 2c 77 6f |Windows(|world,wo|
|000023a0| 72 6c 64 2c 26 72 53 72 | 63 2c 26 72 2c 73 72 63 |rld,&rSr|c,&r,src|
|000023b0| 4f 72 2c 4e 55 4c 4c 29 | 3b 0d 0d 09 2f 2f 20 63 |Or,NULL)|;...// c|
|000023c0| 6f 75 6e 74 20 74 68 65 | 20 62 6c 61 63 6b 20 70 |ount the| black p|
|000023d0| 69 78 65 6c 73 0d 09 72 | 3d 72 44 73 74 3b 0d 09 |ixels..r|=rDst;..|
|000023e0| 6e 3d 72 2e 72 69 67 68 | 74 2d 72 2e 6c 65 66 74 |n=r.righ|t-r.left|
|000023f0| 3b 0d 09 70 69 78 3d 28 | 75 6e 73 69 67 6e 65 64 |;..pix=(|unsigned|
|00002400| 20 6c 6f 6e 67 20 2a 29 | 6d 61 6c 6c 6f 63 28 6e | long *)|malloc(n|
|00002410| 2a 73 69 7a 65 6f 66 28 | 2a 70 69 78 29 29 3b 0d |*sizeof(|*pix));.|
|00002420| 09 69 66 28 70 69 78 3d | 3d 4e 55 4c 4c 29 50 72 |.if(pix=|=NULL)Pr|
|00002430| 69 6e 74 66 45 78 69 74 | 28 22 25 73 20 6c 69 6e |intfExit|("%s lin|
|00002440| 65 20 25 64 3a 20 43 6f | 75 6c 64 6e 27 74 20 61 |e %d: Co|uldn't a|
|00002450| 6c 6c 6f 63 61 74 65 20 | 25 6c 64 20 62 79 74 65 |llocate |%ld byte|
|00002460| 73 2e 5c 6e 22 0d 09 09 | 2c 5f 5f 46 49 4c 45 5f |s.\n"...|,__FILE_|
|00002470| 5f 2c 5f 5f 4c 49 4e 45 | 5f 5f 2c 6e 2a 73 69 7a |_,__LINE|__,n*siz|
|00002480| 65 6f 66 28 6c 6f 6e 67 | 29 29 3b 0d 09 53 65 74 |eof(long|));..Set|
|00002490| 47 57 6f 72 6c 64 28 77 | 6f 72 6c 64 2c 4e 55 4c |GWorld(w|orld,NUL|
|000024a0| 4c 29 3b 0d 09 66 6f 72 | 28 79 3d 30 3b 79 3c 72 |L);..for|(y=0;y<r|
|000024b0| 2e 62 6f 74 74 6f 6d 2d | 72 2e 74 6f 70 3b 79 2b |.bottom-|r.top;y+|
|000024c0| 2b 29 7b 0d 09 09 47 65 | 74 50 69 78 65 6c 73 51 |+){...Ge|tPixelsQ|
|000024d0| 75 69 63 6b 6c 79 28 72 | 2e 6c 65 66 74 2c 72 2e |uickly(r|.left,r.|
|000024e0| 74 6f 70 2b 79 2c 70 69 | 78 2c 6e 29 3b 0d 09 09 |top+y,pi|x,n);...|
|000024f0| 66 6f 72 28 78 3d 6e 2d | 31 3b 78 3e 3d 30 3b 78 |for(x=n-|1;x>=0;x|
|00002500| 2d 2d 29 69 66 28 70 69 | 78 5b 78 5d 21 3d 30 29 |--)if(pi|x[x]!=0)|
|00002510| 7b 0d 09 09 09 63 6f 75 | 6e 74 2b 2b 3b 0d 09 09 |{....cou|nt++;...|
|00002520| 7d 0d 09 7d 0d 09 69 66 | 28 53 48 4f 57 5f 42 49 |}..}..if|(SHOW_BI|
|00002530| 54 4d 41 50 53 29 7b 0d | 09 09 50 72 69 6e 74 66 |TMAPS){.|..Printf|
|00002540| 47 57 6f 72 6c 64 28 77 | 6f 72 6c 64 29 3b 0d 09 |GWorld(w|orld);..|
|00002550| 09 67 65 74 73 28 73 74 | 72 69 6e 67 29 3b 0d 09 |.gets(st|ring);..|
|00002560| 7d 0d 09 53 65 74 47 57 | 6f 72 6c 64 28 6f 6c 64 |}..SetGW|orld(old|
|00002570| 2c 6f 6c 64 44 65 76 69 | 63 65 29 3b 0d 09 66 72 |,oldDevi|ce);..fr|
|00002580| 65 65 28 70 69 78 29 3b | 09 0d 09 69 66 28 30 29 |ee(pix);|...if(0)|
|00002590| 7b 0d 09 09 44 69 73 70 | 6f 73 65 47 57 6f 72 6c |{...Disp|oseGWorl|
|000025a0| 64 28 77 6f 72 6c 64 29 | 3b 0d 09 09 77 6f 72 6c |d(world)|;...worl|
|000025b0| 64 3d 4e 55 4c 4c 3b 0d | 09 7d 0d 09 72 65 74 75 |d=NULL;.|.}..retu|
|000025c0| 72 6e 20 63 6f 75 6e 74 | 2f 36 2e 30 3b 0d 7d 0d |rn count|/6.0;.}.|
|000025d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002600| 00 00 01 00 00 00 06 62 | 00 00 05 62 00 00 00 aa |.......b|...b....|
|00002610| 00 00 2d c4 00 54 03 00 | 00 00 00 00 00 00 00 00 |..-..T..|........|
|00002620| 00 00 01 b4 0b 54 72 61 | 6e 73 6c 61 74 6f 72 73 |.....Tra|nslators|
|00002630| 0e 53 74 72 69 6e 67 42 | 6f 75 6e 64 73 2e 63 53 |.StringB|ounds.cS|
|00002640| 02 00 00 00 50 61 72 74 | 53 49 54 21 00 00 00 00 |....Part|SIT!....|
|00002650| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00002660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002670| 00 00 ab bf ee 70 00 00 | 00 00 00 00 07 0c a7 fa |.....p..|........|
|00002680| e0 c2 a8 08 1b cc 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026a0| 00 00 00 00 00 00 00 00 | 1d 63 00 03 00 00 00 00 |........|.c......|
|000026b0| 00 00 00 00 00 00 00 00 | 13 00 00 00 2d c4 0d 20 |........|....-.. |
|000026c0| 2e 6f 20 43 6f 6e 76 65 | 72 74 65 72 02 00 00 00 |.o Conve|rter....|
|000026d0| 54 52 41 4e 6f 43 6e 76 | 20 00 00 00 00 00 00 00 |TRANoCnv| .......|
|000026e0| 00 00 2d f7 00 00 00 00 | 00 00 00 00 00 00 00 00 |..-.....|........|
|000026f0| 00 00 9d 0e 00 00 a2 00 | a8 08 18 5b a8 08 18 ed |........|...[....|
|00002700| 00 00 00 1e 00 00 0e d6 | 00 74 00 36 07 98 00 00 |........|.t.6....|
|00002710| 10 33 00 83 00 00 00 00 | 00 00 0e 8c 00 72 00 00 |.3......|.....r..|
|00002720| 00 00 00 00 01 d4 00 12 | 00 10 00 00 0a 04 00 4b |........|.......K|
|00002730| 00 36 0b ac 10 80 01 73 | 00 2c 00 00 0c 39 00 5c |.6.....s|.,...9.\|
|00002740| 00 36 0b 9c 80 00 00 82 | 01 b4 01 2b 02 7c 94 20 |.6......|...+.|. |
|00002750| 00 00 00 00 00 00 0d 28 | 2a 6f 75 72 29 2e 70 6e |.......(|*our).pn|
|00002760| 4c 6f 63 20 00 2c 00 00 | 0c 39 00 5c 00 36 0b 2c |Loc .,..|.9.\.6.,|
|00002770| 80 00 00 be 01 b4 01 67 | 02 7c 94 20 00 00 00 00 |.......g|.|. ....|
|00002780| 00 00 0d 28 2a 6f 75 72 | 29 2e 70 6e 4c 6f 63 20 |...(*our|).pnLoc |
|00002790| 00 24 00 00 0c 39 00 5c | 00 36 0a c8 80 00 00 2a |.$...9.\|.6.....*|
|000027a0| 01 c7 01 78 02 7a 94 20 | 00 00 00 00 00 00 05 2a |...x.z. |.......*|
|000027b0| 6f 75 72 20 00 12 00 00 | 0c 39 00 5c 00 36 09 dc |our ....|.9.\.6..|
|000027c0| 00 00 03 6f 75 72 00 26 | 00 00 0d 73 00 6b 00 36 |...our.&|...s.k.6|
|000027d0| 09 cc 80 00 00 2a 00 0a | 00 91 00 8a 94 20 00 00 |.....*..|..... ..|
|000027e0| 00 00 00 00 07 2a 62 6f | 75 6e 64 73 00 16 00 00 |.....*bo|unds....|
|000027f0| 0d 73 00 6b 00 36 09 60 | 00 00 07 62 6f 75 6e 64 |.s.k.6.`|...bound|
|00002800| 73 20 00 2a 00 00 0d 73 | 00 6b 00 36 09 44 80 00 |s .*...s|.k.6.D..|
|00002810| 00 29 00 97 00 90 01 0f | 94 20 00 00 00 00 00 00 |.)......|. ......|
|00002820| 0b 77 6f 72 6c 64 42 6f | 75 6e 64 73 00 20 00 00 |.worldBo|unds. ..|
|00002830| 0a 32 00 4d 00 36 08 d8 | 80 00 00 29 01 1f 00 90 |.2.M.6..|...)....|
|00002840| 01 b6 94 20 00 00 00 00 | 00 00 01 66 00 14 00 00 |... ....|...f....|
|00002850| 10 33 00 83 00 36 08 6c | 00 00 05 62 6c 61 6e 6b |.3...6.l|...blank|
|00002860| 00 20 00 00 0e ac 00 73 | 00 36 08 5c 00 00 11 77 |. .....s|.6.\...w|
|00002870| 6f 72 6c 64 42 6f 75 6e | 64 73 2e 6c 65 66 74 20 |orldBoun|ds.left |
|00002880| 00 14 00 00 0e ac 00 73 | 00 36 08 40 00 00 05 2a |.......s|.6.@...*|
|00002890| 70 69 78 20 00 12 00 00 | 0e ac 00 73 00 36 08 30 |pix ....|...s.6.0|
|000028a0| 00 00 03 70 69 78 00 10 | 00 00 0d a4 00 6c 00 36 |...pix..|.....l.6|
|000028b0| 07 9c 00 00 01 6e 00 10 | 00 00 0e d6 00 74 00 36 |.....n..|.....t.6|
|000028c0| 07 cc 00 00 01 79 00 14 | 00 00 0e d6 00 74 00 36 |.....y..|.....t.6|
|000028d0| 07 98 00 00 05 79 3d 3d | 30 20 00 10 00 00 0e d6 |.....y==|0 ......|
|000028e0| 00 74 00 36 07 c8 00 00 | 01 69 00 10 00 00 0f 06 |.t.6....|.i......|
|000028f0| 00 76 00 36 07 28 00 00 | 01 78 00 00 00 0a 00 00 |.v.6.(..|.x......|
|00002900| 10 18 00 82 00 00 00 00 | 00 00 02 2a 00 14 00 10 |........|...*....|
|00002910| 00 00 09 b5 00 45 00 9e | 08 f8 10 80 01 73 00 2a |.....E..|.....s.*|
|00002920| 00 00 09 b5 00 45 00 9e | 09 20 80 00 00 65 01 63 |.....E..|. ...e.c|
|00002930| 01 0e 02 7c 94 20 00 00 | 00 00 00 00 0b 2a 62 6f |...|. ..|.....*bo|
|00002940| 75 6e 64 73 50 74 72 20 | 00 18 00 00 09 b5 00 45 |undsPtr |.......E|
|00002950| 00 9e 08 98 00 00 09 62 | 6f 75 6e 64 73 50 74 72 |.......b|oundsPtr|
|00002960| 00 20 00 00 0a 32 00 4d | 00 9e 08 7c 80 00 00 44 |. ...2.M|...|...D|
|00002970| 01 39 00 ab 01 d6 94 20 | 00 00 00 00 00 00 01 72 |.9..... |.......r|
|00002980| 00 26 00 00 0d 73 00 6b | 00 9e 08 10 80 00 01 05 |.&...s.k|........|
|00002990| 01 df 01 6c 02 72 94 20 | 00 00 00 00 00 00 07 62 |...l.r. |.......b|
|000029a0| 6f 75 6e 64 73 20 00 14 | 00 00 0e d6 00 74 00 9e |ounds ..|.....t..|
|000029b0| 07 a4 00 00 05 62 6c 61 | 6e 6b 00 10 00 00 0e d6 |.....bla|nk......|
|000029c0| 00 74 00 9e 07 94 00 00 | 01 78 00 10 00 00 0e 8c |.t......|.x......|
|000029d0| 00 72 00 9e 07 84 00 00 | 01 79 00 2e 00 00 0b 99 |.r......|.y......|
|000029e0| 00 59 00 9e 07 68 80 00 | 00 bc 01 3f 01 23 01 e2 |.Y...h..|...?.#..|
|000029f0| 94 20 00 00 00 00 00 00 | 0f 28 2a 6f 75 72 29 2e |. ......|.(*our).|
|00002a00| 70 6f 72 74 52 65 63 74 | 00 22 00 00 0b 99 00 59 |portRect|.".....Y|
|00002a10| 00 9e 06 fc 00 00 13 28 | 2a 6f 75 72 20 29 2e 72 |.......(|*our ).r|
|00002a20| 67 62 42 6b 43 6f 6c 6f | 72 20 00 32 00 00 0b 99 |gbBkColo|r .2....|
|00002a30| 00 59 00 9e 06 ec 80 00 | 00 c9 01 95 01 72 02 6e |.Y......|.....r.n|
|00002a40| 94 20 00 00 00 00 00 00 | 13 28 2a 6f 75 72 20 29 |. ......|.(*our )|
|00002a50| 2e 72 67 62 46 67 43 6f | 6c 6f 72 20 00 22 00 00 |.rgbFgCo|lor ."..|
|00002a60| 0b 99 00 59 00 9e 06 84 | 00 00 13 28 2a 6f 75 72 |...Y....|...(*our|
|00002a70| 20 29 2e 72 67 62 46 67 | 43 6f 6c 6f 72 20 00 22 | ).rgbFg|Color ."|
|00002a80| 00 00 0b 99 00 59 00 9e | 06 74 00 00 13 28 2a 6f |.....Y..|.t...(*o|
|00002a90| 75 72 20 29 2e 72 67 62 | 42 6b 43 6f 6c 6f 72 20 |ur ).rgb|BkColor |
|00002aa0| 00 24 00 00 0b 99 00 59 | 00 9e 06 58 80 00 00 a1 |.$.....Y|...X....|
|00002ab0| 01 8d 01 4a 02 66 94 20 | 00 00 00 01 00 00 05 2a |...J.f. |.......*|
|00002ac0| 6f 75 72 20 00 12 00 00 | 0b 99 00 59 00 9e 05 7c |our ....|...Y...||
|00002ad0| 00 00 03 6f 75 72 00 10 | 00 00 0b 99 00 59 00 9e |...our..|.....Y..|
|00002ae0| 05 6c 00 00 01 72 00 1a | 00 00 0c 4f 00 5d 00 9e |.l...r..|...O.]..|
|00002af0| 05 50 00 00 0b 6f 6c 64 | 2d 3e 74 78 46 61 63 65 |.P...old|->txFace|
|00002b00| 00 10 00 00 0d a4 00 6c | 00 9e 05 40 00 00 01 6e |.......l|...@...n|
|00002b10| 00 12 00 00 0c 97 00 60 | 00 9e 05 30 00 00 03 6f |.......`|...0...o|
|00002b20| 75 72 00 14 00 00 0e d6 | 00 74 00 9e 05 20 00 00 |ur......|.t... ..|
|00002b30| 05 62 6c 61 6e 6b 00 00 | 00 70 00 04 00 1c 00 00 |.blank..|.p......|
|00002b40| 0a 04 00 4b 00 d3 6a f0 | 00 00 0d 53 74 61 63 6b |...K..j.|...Stack|
|00002b50| 53 70 61 63 65 28 29 20 | 00 2c 00 00 0c 97 00 60 |Space() |.,.....`|
|00002b60| 00 d3 6a f8 80 00 00 69 | 02 83 01 49 03 9c 94 20 |..j....i|...I... |
|00002b70| 00 00 00 00 00 00 0d 6f | 75 72 2d 3e 70 6f 72 74 |.......o|ur->port|
|00002b80| 52 65 63 74 00 16 00 00 | 0c ff 00 65 00 d3 6a 6c |Rect....|...e..jl|
|00002b90| 00 00 07 73 74 72 69 6e | 67 20 00 10 00 00 0a d5 |...strin|g ......|
|00002ba0| 00 51 00 d3 6a 5c 10 80 | 01 73 00 00 00 1e 00 2a |.Q..j\..|.s.....*|
|00002bb0| 00 03 01 d1 01 ff 00 2a | 00 03 01 6b 01 3a 00 00 |.......*|...k.:..|
|00002bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 3e |........|.......>|
|00002bd0| 00 03 00 00 07 fe 00 00 | 08 08 0b 43 68 61 72 42 |........|...CharB|
|00002be0| 6f 75 6e 64 73 00 00 00 | 08 93 00 00 08 9c 09 53 |ounds...|.......S|
|00002bf0| 74 72 42 6f 75 6e 64 73 | 00 00 09 19 00 00 09 25 |trBounds|.......%|
|00002c00| 0d 53 74 72 69 6e 67 42 | 6f 75 6e 64 73 00 00 00 |.StringB|ounds...|
|00002c10| 00 48 00 09 4d 6f 6e 61 | 63 6f 00 00 00 00 00 00 |.H..Mona|co......|
|00002c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c30| 00 00 00 00 00 03 00 04 | 00 3e 00 04 01 dc 02 7c |........|.>.....||
|00002c40| 00 3e 00 04 01 dc 02 7c | ab 94 c8 d0 00 00 0f 57 |.>.....||.......W|
|00002c50| 00 00 0f 60 00 00 0f 17 | 00 00 00 00 00 04 00 01 |...`....|........|
|00002c60| 00 01 00 00 01 00 00 00 | 06 62 00 00 05 62 00 00 |........|.b...b..|
|00002c70| 00 aa 00 71 4c 48 2c 12 | 00 00 00 1c 00 aa 00 03 |...qLH,.|........|
|00002c80| 42 4b 50 54 00 01 00 22 | 44 54 56 55 00 02 00 3a |BKPT..."|DTVU...:|
|00002c90| 4d 50 53 52 00 02 00 5e | 4d 57 42 42 00 00 00 82 |MPSR...^|MWBB....|
|00002ca0| 4a cb ff ff 00 00 00 00 | 00 00 00 00 4b 7b ff ff |J.......|....K{..|
|00002cb0| 00 00 01 fa 00 00 00 00 | 44 15 ff ff 00 00 00 22 |........|D......"|
|00002cc0| 00 00 00 00 1a 0e ff ff | 00 00 02 08 00 00 00 00 |........|........|
|00002cd0| 75 23 ff ff 00 00 04 36 | 00 00 00 00 03 f0 ff ff |u#.....6|........|
|00002ce0| 00 00 04 aa 00 00 00 00 | 03 ef ff ff 00 00 04 cc |........|........|
|00002cf0| 00 00 00 00 03 ed ff ff | 00 00 05 0e 00 00 00 00 |........|........|
|00002d00| 03 f0 ff ff 00 00 05 5a | 00 00 00 00 00 00 00 00 |.......Z|........|
|00002d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+